import { post } from '../http'

/**
 * @description: 获取列表数据
 * @param data
 * @return Promise
 */
export const getStaffPageList = (data) => post({ url: '/staff/pageList', data })

/**
 * @description: 获取树形数据
 * @param data
 * @return Promise
 */
export const getTree = (data) => post({ url: '/org/getTree', data })

/**
 * @description: 上移
 * @param data
 * @return Promise
 */
export const treeUp = (data) => post({ url: '/org/moveUpSort', data })

/**
 * @description: 下移
 * @param data
 * @return Promise
 */
export const treeDown = (data) => post({ url: '/org/moveDownSort', data })

/**
 * @description: 页面数据
 * @param data
 * @return Promise
 */
export const getOrgPageData = (data) => post({ url: '/org/pageData', data })

/**
 * @description: 机构详情
 * @param data
 * @return Promise
 */
export const getOrgDetail = (data) => post({ url: '/org/detail', data })

/**
 * @description: 根据codes查找区域
 * @param data
 * @return Promise
 */
export const findCitysByCodes = (data) => post({ url: '/area/findCitysByCodes', data })

/**
 * @description: 根据上级和名称模糊匹配获取城市列表
 * @param data
 * @return Promise
 */
export const findByNameAndParent = (data) => post({ url: '/area/findByNameAndParent', data })

/**
 * @description: 根据名称模糊匹配城市(二级行政区域)
 * @param data
 * @return Promise
 */
export const findCitysByName = (data) => post({ url: '/area/findCitysByName', data })

/**
 * @description: 员工页面枚举数据
 * @param data
 * @return Promise
 */
export const staffPageData = (data) => post({ url: '/staff/pageData', data })

/**
 * @description: 获取当前登录帐号用户信息
 * @param data
 * @return Promise
 */
export const findUserInfo = (data) => post({ url: '/user/findUserInfo', data })

/**
 * @description: 员工岗位，类型
 * @param data
 * @return Promise
 */
export const postandtype = (data) => post({ url: '/dict/getInfo', data })

/**
 * @description: 组织机构权限列表
 * @param data
 * @return Promise
 */
export const selectAuthList = (data) => post({ url: '/org/selectAuthList', data })

/**
 * @description: 新增机构
 * @param data
 * @return Promise
 */
export const orgAdd = (data) => post({ url: '/org/create', data })

/**
 * @description: 编辑机构
 * @param data
 * @return Promise
 */
export const orgEdit = (data) => post({ url: '/org/edit', data })

/**
 * @description: 员工详情
 * @param data
 * @return Promise
 */
export const staffDetail = (data) => post({ url: '/staff/detail', data })

/**
 * @description: 删除机构
 * @param data
 * @return Promise
 */
export const orgDelete = (data) => post({ url: '/org/delete', data })

/**
 * @description: 员工  新增/编辑 保存
 * @param data
 * @return Promise
 */
export const staffSave = (data) => post({ url: '/staff/save', data })

/**
 * @description: 员工  新增/编辑 保存
 * @param data
 * @return Promise
 */
export const staffExportExcel = (data) => post({ url: '/staff/exportExcel', data })
